home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / bd3.zip / READ.ME < prev   
Text File  |  1989-04-30  |  3KB  |  59 lines

  1. BANK DEMO 3
  2.  
  3. A Demonstration of Tasking in Ada
  4. Version 1.0, 11 March 1989
  5.  
  6. by
  7. Richard Conn
  8.  
  9.  
  10.      Bank  Demo 3, or BD3 as the files and mainline procedure are named, is  a
  11. demonstration program which illustrates how  Ada and its tasking mechanism can
  12. be used to create a model of an activity in the real world.  BD3 is a model of
  13. a bank, where the bank contains several tellers, implemented as Ada tasks, and
  14. is used by  customers, also implemented as Ada tasks.  The user at the console
  15. can monitor the status of the bank and the accounts of its customers and cause
  16. more customer tasks to execute, thereby increasing the level  of  activity  at
  17. the bank. The tasks all operate in parallel,  so  a  variety  of events can be
  18. thought of as happening at the same time, controlled by the Ada runtime system
  19. which is built into the Ada program by the Ada compilation system.
  20.  
  21.      This  document  and  the   associated   software   are  presented  as  an
  22. introduction  to the Ada language and its tasking  capabilities.    While  the
  23. author attempted to make this  document  as  easy  to  follow  as  possible, a
  24. limited knowledge of Ada is  assumed.  Variable assignments, type definitions,
  25. and procedure and package specifications are presented in  correct  Ada syntax
  26. without much explanation.  If  this  proves  to  be  a  problem,  the ADA-TUTR
  27. shareware program will help a  lot  in  bringing  the  user up to date with an
  28. understanding of Ada syntax.  Regardless, the program in the file  BD3.EXE can
  29. be  run without any knowledge of Ada at all, and the tasking demonstration can
  30. be observed.
  31.  
  32.      Figure  25  shows  the files provided in the distribution of Bank Demo 3.
  33. This document is in one-column format.
  34.  
  35. ======================================================================
  36.  
  37. READ.ME          An introduction to the distribution
  38. PRINT.ME         This document, ready to be printed as ASCII
  39.                     text on 8 1/2" x 11" paper in elite type
  40. BD3.SPR          Source (in Borland's SPRINT) to the file PRINT.ME
  41.  
  42. CONSOLE.ADA      Compilable Ada source code to package CONSOLE
  43. RANDOM.ADA       Compilable Ada source code to package RANDOM
  44. BD3.ADA          Compilable Ada source code to packages BANK
  45.                     and CUSTOMER_WORLD and procedure BD3
  46.                     Note: the compilation order is CONSOLE.ADA,
  47.                     RANDOM.ADA, and BD3.ADA
  48.  
  49. CONSOLE.LST      Listing of CONSOLE.ADA with each line numbered
  50. RANDOM.LST       Listing of RANDOM.ADA with each line numbered
  51. BD3.LST          Listing of BD3.ADA with each line numbered
  52.  
  53. BD3.EXE          Executable binary of the BD3 system (run by
  54.                     giving the command "BD3" at the MSDOS prompt)
  55.  
  56. Figure 25: Files Distributed as Part of Bank Demo 3
  57.  
  58. ======================================================================
  59.